package com.example.chatweb.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.convert.DataSizeUnit;
import org.springframework.data.annotation.Id;


//@Document(indexName = "article")
//public class Article {
//    @Id
//    private String id;
//    private String articleTitle;
//    private String articleAbstract;
//
//    // Getters and setters
//}

@Data
@NoArgsConstructor
public class Article {
    String articleId;
    String articleTitle;
    String articleYear;
    String articleAuthors;
    String articleLanguage;
//    String articleAbstract;
    String articleText;
    String articleUrl;

    public Article(String articleId, String articleTitle, String articleYear, String articleAuthors, String articleLanguage, String articleText, String articleUrl) {
        this.articleId = articleId;
        this.articleTitle = articleTitle;
        this.articleYear = articleYear;
        this.articleAuthors = articleAuthors;
        this.articleLanguage = articleLanguage;
        this.articleText = articleText;
        this.articleUrl = articleUrl;
    }
}
